package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.dto.LuLianRecruitmentDto;
import com.aiti.lulian.entity.LuLianRecruitment;
import com.aiti.lulian.vo.LuLianRecruitmentVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author WongMz
 * @CreateDate 2024-08-14
 * @Description: （技术改造、数字化转型、海外贸易）招募单持久层接口类
 */
@Repository
public interface LuLianRecruitmentMapper extends SuperMapper<LuLianRecruitment> {

    List<LuLianRecruitmentVo> selectAllList(Page<LuLianRecruitmentVo> page, @Param("recruitment") LuLianRecruitment recruitment, @Param("signupDeadlineDateStr") String signupDeadlineDateStr);

    List<LuLianRecruitmentVo> selectAllListByUserId(Page<LuLianRecruitmentVo> page, @Param("recruitmentDto") LuLianRecruitmentDto recruitmentDto);

    List<LuLianRecruitment> selectRecruitmentPage(Page<LuLianRecruitment> page, @Param("recruitment") LuLianRecruitment recruitment, @Param("createDate") String createDate);

    Integer selectCountByCondition(@Param("recruitmentDto") LuLianRecruitmentDto recruitmentDto);
}